<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/3/23
  Time: 13:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css"/>
    <script src="${pageContext.request.contextPath}/js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/js/MyJS.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/YZM.js" type="text/javascript" charset="utf-8"></script>

</head>
<body>

<div class="container img-rounded">
    <h1 >注册</h1>
    <form class="form-horizontal" action="${pageContext.request.contextPath}/userServlet">
       <input type="hidden" name="method" value="register">
        <div class="form-group ">
            <label for="inpUserName" class="col-sm-2 control-label">用户名：</label>
            <div class="col-sm-6 ">
                <input type="text" class="form-control" id="inpUserName" placeholder="请输入用户名"name="username">
            </div>
            <div class="col-sm-4" id="d1"> </div>
        </div>

        <div class="form-group">
            <label for="inpPWD" class="col-sm-2 control-label">密码：</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" id="inpPWD" name="password" placeholder="Email">
            </div>
            <div class="col-sm-4"></div>
        </div>

        <div class="form-group">
            <label for="inpPWD2" class="col-sm-2 control-label">确认密码：</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" id="inpPWD2" name="password2" placeholder="Email">
            </div>
            <div class="col-sm-4"></div>
        </div>

        <div class="form-group">
            <label for="inpEmail" class="col-sm-2 control-label">Email：</label>
            <div class="col-sm-6">
                <input type="email" class="form-control" name="email" id="inpEmail" placeholder="Email">
            </div>
            <div class="col-sm-4"></div>
        </div>

        <div class="form-group">
            <label for="inpYZM" class="col-sm-2 control-label">验证码：</label>
            <div class="col-sm-3">
                <input type="text" class="form-control" id="inpYZM" value="" placeholder="请输入验证码">
            </div>
            <div class="col-sm-3">
                <canvas id="canvas" width="100" height="30"></canvas>
            </div>
            <div class="col-sm-4"></div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="button" class="btn btn-default" onclick="go()">Sign up</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>
